import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router"

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name:'Register',
        component: () => import('../View/User/Register.vue')//注册页面
    },
    {
        path: '/Home',
        name:'Home',
        component: () => import('../View/Home.vue')//主页面
    },
    {
        path: '/login',
        name:'Login',
        component: () => import('../View/User/Login.vue')//登录页面
    },
    {
        path:'/UserInfoRegister/:Uid',
        name:'UserInfoRegister',
        component: () => import('../View/User/UserInfoRegister.vue')//用户详细信息注册页面
    },
    {
        path:'/ShowUserInfo',
        name:'ShowUserInfo',
        component: () => import('../View/User/ShowUserInfo.vue')//用户详细信息展示页面
    },
    {
        path:'/StaffInversAdd',
        name:'StaffInversAdd',
        component: () => import('../View/Invers/StaffInversAdd.vue')// 管理员(投资项目信息添加)
    },
    {
        path:'/StaffInversShow',
        name:'StaffInversShow',
        component: () => import('../View/Invers/StaffInversShow.vue')// 管理员(投资项目信息展示)
    },
    {
        path:'/StaffEditInvers/:Iid',
        name:'StaffEditInvers',
        component: () => import('../View/Invers/StaffEditInvers.vue')// 管理员(投资项目信息编辑)
    },
    {
        path:'/AddFinancing',
        name:'AddFinancing',
        component: () => import('../View/Financing/AddFinancing.vue')// 管理员(理财项目信息添加)
    },
    {
        path:'/ShowFinancing',
        name:'ShowFinancing',
        component: () => import('../View/Financing/ShowFinancing.vue')// 管理员(理财项目信息展示)
    },
    {
        path:'/AbbBorrow',
        name:'AbbBorrow',
        component: () => import('../View/Borrow/AbbBorrow.vue')// 管理员(借款项目信息添加)
    },
    {
        path:'/ShowUserInvers',
        name:'ShowUserInvers',
        component: () => import('../View/Invers/ShowUserInvers.vue')// 用户(投资项目信息显示)
    },
    {
        path:'/AddUserInvers/:Iid',
        name:'AddUserInvers',
        component: () => import('../View/Invers/AddUserInvers.vue')// 用户(投资项目信息添加)
    },
    {
        path:'/ShowStaffInvers',
        name:'ShowStaffInvers',
        component: () => import('../View/Invers/ShowStaffInvers.vue')// 管理员(投资项目信息展示)
    },
    {
        path:'/ShowInvers/:Iid',
        name:'ShowInvers',
        component: () => import('../View/Invers/ShowInvers.vue')// 管理员(用户投资明细)
    },
    {
        path:'/UserFinancingShow',
        name:'UserFinancingShow',
        component: () => import('../View/Financing/UserFinancingShow.vue')// 用户(理财项目列表信息展示)
    },
    {
        path:'/AddUserFinancing/:F_Id',
        name:'AddUserFinancing',
        component: () => import('../View/Financing/AddUserFinancing.vue')// 用户(理财项目信息添加)
    },
    {
        path:'/ShowStaffFinancing',
        name:'ShowStaffFinancing',
        component: () => import('../View/Financing/ShowStaffFinancing.vue')// 管理员(理财项目信息展示)
    },
    {
        path:'/ShowStaffFinan/:F_Id',
        name:'ShowStaffFinan',
        component: () => import('../View/Financing/ShowStaffFinan.vue')// 管理员(用户理财明细)
    },
    {
        path:'/ShowAllInversRedeer',
        name:'ShowAllInversRedeer',
        component: () => import('../View/Invers/ShowAllInversRedeer.vue')// 用户(投资项目信息展示)(赎回)
    },
    {
        path:'/ShowInversRedeer/:UI_Id',
        name:'ShowInversRedeer',
        component: () => import('../View/Invers/ShowInversRedeer.vue')// 用户(投资赎回页面)(赎回)
    },
    {
        path:'/ShowUserInversRedeer',
        name:'ShowUserInversRedeer',
        component: () => import('../View/Invers/ShowUserInversRedeer.vue')//管理员(投资项目赎回信息展示)
    },
    {
        path:'/UserInversRedeer/:I_Id',
        name:'UserInversRedeer',
        component: () => import('../View/Invers/UserInversRedeer.vue')//管理员(投资项目赎回明细信息展示)
    },
    {
        path:'/ShowUserFinancing',
        name:'ShowUserFinancing',
        component: () => import('../View/Financing/ShowUserFinancing.vue')// 用户(理财项目信息展示)(赎回)理财赎回
    },
]
 
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
